<?php
namespace app\front\controller\v2;
use think\Controller;
use app\front\service\v2\WithdrawOrder as WithdraworderService;
use app\front\service\v2\CommonFunction as CommonService;
use app\front\service\v2\Pay as PayService;
use app\front\service\v2\Verify as VerifyService;
use app\front\service\v2\gzhCallBack as GzhCallBackService;
use app\front\service\v2\Order as OrderService;
use app\front\service\v2\ShareWx as ShareWxService;
use app\front\service\v2\RedPack as RedPackService;
use app\front\service\v2\PersionCenter as PersionCenterService;
use app\front\service\v2\Statistics as StatisticsService;
use app\front\service\v2\Outside as OutsideService;
use app\front\service\v2\Show as ShowService;
use app\front\service\v2\Notify as NotifyService;
use app\front\service\v2\AliCallBack as AliCallBackService;
use app\front\service\GetMsgService;
class BaseController extends Controller
{
    public function getRedPackService(){
        $redPackService= RedPackService::getInstance();
        return $redPackService;
    }
    public function getAliCallBackService()
    {
        $aliCallBackService=AliCallBackService::getInstance();
        return  $aliCallBackService;
    }

    public function getNotifyService()
    {
        $notifyService=NotifyService::getInstance();
        return  $notifyService;
    }

    public function getShowService()
    {
        $showService=ShowService::getInstance();
        return  $showService;
    }

    public function getOutsideService()
    {
        $outsideService=OutsideService::getInstance();;
        return  $outsideService;
    }

    public function getGetMsgService()
    {
        $GetMsgService=new GetMsgService();
        return  $GetMsgService;
    }

    public function getPersionCenterService()
    {
        $persionCenterService=new PersionCenterService();
        return  $persionCenterService;
    }

    public function getCommonService()
    {
        $commonService=new CommonService();
        return  $commonService;
    }

    public function getPayService()
    {
        $payService=new PayService();
        return  $payService;
    }

    public function getVerifyService()
    {
        $verifyService=new VerifyService();
        return  $verifyService;
    }

    public function getGzhCallBackService()
    {
        $gzhCallBackService=new GzhCallBackService();
        return  $gzhCallBackService;
    }

    public function getOrderService()
    {
        $orderService= OrderService::getInstance();
        return   $orderService;
    }

    public function getStatisticsService()
    {
        $statisticsService=StatisticsService::getInstance();
        return  $statisticsService;
    }

    public function getWithdraworderService()
    {
        $withdraworderService=  WithdraworderService::getInstance();
        return  $withdraworderService;
    }

    public function getShareWxService()
    {
        $shareWxService= new ShareWxService();
        return   $shareWxService;
    }





    //用户和CMS都可以访问的权限
//     protected function checkPrimaryScope(){
//         TokenService::needPrimaryScope();
//     }

//     //只有用户能访问的权限
//     protected function checkExclusiveScope(){
//         TokenService::needExclusiveScope();
//     }



}